Optimal. Leaf size=109 \[ \frac{8 \sqrt [4]{-1} a^3 \tan ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{16 i a^3}{3 d^2 f \sqrt{d \tan (e+f x)}}-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20379, antiderivative size = 109, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3553, 3591, 3533, 205} \[ \frac{8 \sqrt [4]{-1} a^3 \tan ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{16 i a^3}{3 d^2 f \sqrt{d \tan (e+f x)}}-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3553
Rule 3591
Rule 3533
Rule 205
Rubi steps
\begin{align*} \int \frac{(a+i a \tan (e+f x))^3}{(d \tan (e+f x))^{5/2}} \, dx &=-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}}-\frac{2 \int \frac{(a+i a \tan (e+f x)) \left (-4 i a^2 d+2 a^2 d \tan (e+f x)\right )}{(d \tan (e+f x))^{3/2}} \, dx}{3 d^2}\\ &=-\frac{16 i a^3}{3 d^2 f \sqrt{d \tan (e+f x)}}-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}}-\frac{2 \int \frac{6 a^3 d^2+6 i a^3 d^2 \tan (e+f x)}{\sqrt{d \tan (e+f x)}} \, dx}{3 d^4}\\ &=-\frac{16 i a^3}{3 d^2 f \sqrt{d \tan (e+f x)}}-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}}-\frac{\left (48 a^6\right ) \operatorname{Subst}\left (\int \frac{1}{6 a^3 d^3-6 i a^3 d^2 x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{f}\\ &=\frac{8 \sqrt [4]{-1} a^3 \tan ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{d^{5/2} f}-\frac{16 i a^3}{3 d^2 f \sqrt{d \tan (e+f x)}}-\frac{2 \left (a^3+i a^3 \tan (e+f x)\right )}{3 d f (d \tan (e+f x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 3.30157, size = 87, normalized size = 0.8 \[ -\frac{2 a^3 \left (\cot (e+f x)-12 i \sqrt{i \tan (e+f x)} \tanh ^{-1}\left (\sqrt{\frac{-1+e^{2 i (e+f x)}}{1+e^{2 i (e+f x)}}}\right )+9 i\right )}{3 d^2 f \sqrt{d \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.026, size = 394, normalized size = 3.6 \begin{align*}{\frac{-6\,i{a}^{3}}{f{d}^{2}}{\frac{1}{\sqrt{d\tan \left ( fx+e \right ) }}}}-{\frac{2\,{a}^{3}}{3\,fd} \left ( d\tan \left ( fx+e \right ) \right ) ^{-{\frac{3}{2}}}}-{\frac{{a}^{3}\sqrt{2}}{f{d}^{3}}\sqrt [4]{{d}^{2}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ) }-2\,{\frac{{a}^{3}\sqrt [4]{{d}^{2}}\sqrt{2}}{f{d}^{3}}\arctan \left ({\frac{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }}{\sqrt [4]{{d}^{2}}}}+1 \right ) }+2\,{\frac{{a}^{3}\sqrt [4]{{d}^{2}}\sqrt{2}}{f{d}^{3}}\arctan \left ( -{\frac{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }}{\sqrt [4]{{d}^{2}}}}+1 \right ) }-{\frac{i{a}^{3}\sqrt{2}}{f{d}^{2}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{2\,i{a}^{3}\sqrt{2}}{f{d}^{2}}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}+{\frac{2\,i{a}^{3}\sqrt{2}}{f{d}^{2}}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.35729, size = 1065, normalized size = 9.77 \begin{align*} -\frac{3 \,{\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt{-\frac{64 i \, a^{6}}{d^{5} f^{2}}} \log \left (\frac{{\left (-8 i \, a^{3} d e^{\left (2 i \, f x + 2 i \, e\right )} +{\left (d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt{\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{-\frac{64 i \, a^{6}}{d^{5} f^{2}}}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right ) - 3 \,{\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt{-\frac{64 i \, a^{6}}{d^{5} f^{2}}} \log \left (\frac{{\left (-8 i \, a^{3} d e^{\left (2 i \, f x + 2 i \, e\right )} -{\left (d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )} \sqrt{\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{-\frac{64 i \, a^{6}}{d^{5} f^{2}}}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right ) - 16 \,{\left (5 \, a^{3} e^{\left (4 i \, f x + 4 i \, e\right )} + a^{3} e^{\left (2 i \, f x + 2 i \, e\right )} - 4 \, a^{3}\right )} \sqrt{\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{12 \,{\left (d^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} - 2 \, d^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + d^{3} f\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a^{3} \left (\int \frac{1}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx + \int - \frac{3 \tan ^{2}{\left (e + f x \right )}}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx + \int \frac{3 i \tan{\left (e + f x \right )}}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx + \int - \frac{i \tan ^{3}{\left (e + f x \right )}}{\left (d \tan{\left (e + f x \right )}\right )^{\frac{5}{2}}}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2821, size = 158, normalized size = 1.45 \begin{align*} -\frac{8 i \, \sqrt{2} a^{3} \arctan \left (\frac{16 \, \sqrt{d^{2}} \sqrt{d \tan \left (f x + e\right )}}{8 i \, \sqrt{2} d^{\frac{3}{2}} + 8 \, \sqrt{2} \sqrt{d^{2}} \sqrt{d}}\right )}{d^{\frac{5}{2}} f{\left (\frac{i \, d}{\sqrt{d^{2}}} + 1\right )}} - \frac{2 \,{\left (9 i \, a^{3} d \tan \left (f x + e\right ) + a^{3} d\right )}}{3 \, \sqrt{d \tan \left (f x + e\right )} d^{3} f \tan \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]